package pref.junx.flybird.fragment.daily.event;

import android.util.Log;

/**
 * Created by acer on 2017/8/4.
 */

public class DailyPresenter extends DailyContract.Presenter {




    public String getTime(){
       return  spTools.getString("coursetime");
   }

    @Override
    public void getEvent(int string) {
        rxManager.add(
                modle.getEvents(string)
                        .subscribe(result -> {
                                view.setEvents(result.getData());
                                },
                                e -> {
                                    Log.i("test2", e.getMessage());
                                }));
    }
}
